
import 'package:baby/Entities/DataContext.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_statusbar_manager/flutter_statusbar_manager.dart';

import 'StateManagement/ModelProvider.dart';
import 'UI/Pages/MainPage.dart';

void main() {
  
  debugDefaultTargetPlatformOverride = TargetPlatform.fuchsia;

  runApp(ModelProvider<DataContext>(
    model: DataContext(),
    child: MaterialApp(
      home: Builder(
        builder: (context){
          try {
            // FlutterStatusbarManager.setColor(Colors.transparent);
            // FlutterStatusbarManager.setNavigationBarStyle(NavigationBarStyle.LIGHT);
            // FlutterStatusbarManager.setNavigationBarColor(Theme.of(context).primaryColor);
          }
          catch (exception){
            print(exception);
          }
          return MainPage();
        },
      ),
      theme: ThemeData(
          fontFamily: "alkatip-basma-tom",
          primaryColor: Color(0xFFFF6B6B),
          accentColor: Color(0xFFFF6B6B),
          platform: TargetPlatform.iOS,
          cursorColor: Color(0xFFFF6B6B),
          iconTheme: IconThemeData(
            opacity: 0.5,
          ),
          textTheme: TextTheme(
              body1: TextStyle(

              )
          )
      ),
    ),
  ));
}

